proc voice {nick handle chan otbn1 host botnet} {
global botnick home bcast
if {![botisop $chan]} {
  putserv "NOTICE $nick :ERROR - Bot dosen't have op status (+o) in $chan"
  return 0 
  }
if {$otbn1 == ""} {
  set otbn1 $nick
if {[isvoice $nick $chan]} {
  putserv "NOTICE $nick :ERROR - Already voiced - You are currently voiced on $chan"
  return 0
  }
  putlog "!$nick ($host)! voice $chan" 
  putserv "MODE $chan +v $nick"
  putserv "NOTICE $nick :Sucessfully voiced $nick in $chan"  
if {$bcast == "1"} {
  putserv "PRIVMSG $home :Voiced \002$nick\002 ($host) in $chan"
  }
  return 0
  }
if {![onchan $botnet $chan]} {
  putserv "NOTICE $nick :ERROR - Not Found - $botnet isn't on $chan"
  } else {
if {![matchattr $handle o|o $chan]} { 
  putserv "NOTICE $nick :ERROR - Not Enough Permissions - You may only voice yourself - Permission Denied."
  return 0
  }
if {[isvoice $otbn1 $chan]} {
  putserv "NOTICE $nick :ERROR - Already Voiced - $botnet is currently voiced on $chan"
  } else {
  putlog "!$nick ($host)! voice $chan $botnet"		
  pushmode $chan +v $botnet
  putserv "NOTICE $nick :Sucessfully voiced $botnet on $chan"
if {$bcast == "1"} {
  putserv "PRIVMSG $home :Voiced \002$botnet\002 on $chan (Requested By: \002$nick\002 ($host))"
  }
  }
  }
  }




